package com.example.airport.utils;

import java.util.HashMap;
import java.util.Map;

public class DictUtil {
    private static Map<String, String> dictionary = new HashMap<>();
    public static void setDictionary(Map<String, String> dict) {
        // 初始化字典数据
        dictionary=dict;
    }

    public static String getValue(String dictValue) {
        if (dictionary.containsKey(dictValue)) {
            return dictionary.get(dictValue);
        }
        return null;
    }
}
